from daocloud.io/library/tomcat:8.5.15-alpine
copy ssm.war /usr/local/tomcat/webapps



FROM  node:12.18.4-buster as build-stage
# [标注作者名]
LABEL mantaienr="741883227@qq.com" 
# 创建一个工作路径
WORKDIR "/vueapp"
# 赋值文件到工作路径
COPY . .
RUN npm install --registry=https://registry.npm.taobao.org
RUN npm run build

FROM daocloud.io/library/nginx:1.14
COPY --from=build-stage /vueapp/dist /opt/dist:ro
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]